//
//  NewsTopView.m
//  口袋
//
//  Created by why on 15/5/25.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "NewsTopView.h"

@implementation NewsTopView

- (void)dealloc
{
    [_imageView release];
    [_label release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView
{
    _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height * 0.85)];
    [self addSubview:_imageView];
    [_imageView release];
    
    
    _label = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.size.height * 0.85, self.frame.size.width, self.frame.size.height * 0.15)];
    [self addSubview:_label];
    [_label release];
}

@end
